{
  "openapi": "3.1.0",
  "info": {
    "x-metadata": {
      "status": "published",
      "tags": [
        "Compliance"
      ]
    },
    "version": "1.0.0",
    "license": {
      "name": "Proprietary"
    },
    "title": "Controlling Owners API",
    "description": "Return the controlling owners of a company: its ultimate and immediate owners, their share of ownership, and the group hierarchy above the company."
  },
  "tags": [
    {
      "name": "Authentication",
      "description": "Endpoints to authenticate and generate an Authentication Token."
    },
    {
      "name": "Controlling Owners",
      "description": "Endpoints to return the controlling ownership details of a company."
    }
  ],
  "servers": [
    {
      "url": "https://connect.sandbox.creditsafe.com/v1",
      "description": "Sandbox server"
    },
    {
      "url": "https://connect.creditsafe.com/v1",
      "description": "Production server"
    }
  ],
  "paths": {
    "/authenticate": {
      "post": {
        "operationId": "authenticate",
        "summary": "Authenticate",
        "security": [],
        "tags": [
          "Authentication"
        ],
        "description": "Supply your username and password to get an authentication token. Send the token in the `Authorization` header of every other request, as `Bearer <token>`. A token expires after one hour, so request a new one before then. See [Authentication](https://doc.creditsafe.com/connect-apis-catalog/information/authentication).\n\nFailed logins are rate limited. After 5 invalid requests within 2 minutes, further requests get `429` until the 2 minutes have passed. The `RateLimit-remaining` response header shows how many attempts are left. See [Rate Limiting](https://doc.creditsafe.com/connect-apis-catalog/information/ratelimiting).",
        "requestBody": {
          "required": true,
          "description": "Your Connect username and password.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectAuthenticationAuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Returns the authentication token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectAuthenticationAuthResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. The response has one of two shapes. If `username` or `password` is missing, empty or not a string, the login service returns a validation error with `ValidationErrors`. If the body isn't valid JSON, the gateway returns the standard Connect error body.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "description": "Validation error from the login service.",
                      "required": [
                        "ValidationErrors"
                      ],
                      "properties": {
                        "ValidationErrors": {
                          "type": "array",
                          "description": "One entry for each field that failed validation.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "Name": {
                                "type": "string",
                                "description": "The field that failed validation, for example `Password`."
                              },
                              "Description": {
                                "type": "string",
                                "description": "Why the field failed validation."
                              }
                            }
                          }
                        },
                        "Type": {
                          "type": "string",
                          "description": "A link that identifies the error type."
                        },
                        "Title": {
                          "type": "string",
                          "description": "A short summary of the error."
                        },
                        "Status": {
                          "type": "integer",
                          "description": "The HTTP status code, `400`."
                        },
                        "Detail": {
                          "type": "string",
                          "description": "More detail about the error."
                        },
                        "Instance": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Always `null`."
                        },
                        "Extensions": {
                          "type": "object",
                          "description": "Always an empty object."
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/ConnectErrorResponsesBadRequest"
                    }
                  ]
                },
                "examples": {
                  "missingFields": {
                    "summary": "Username and password missing",
                    "value": {
                      "ValidationErrors": [
                        {
                          "Name": "Password",
                          "Description": "The Password field is required."
                        },
                        {
                          "Name": "Username",
                          "Description": "The Username field is required."
                        }
                      ],
                      "Type": "https://httpstatuses.com/400",
                      "Title": "Validation Error",
                      "Status": 400,
                      "Detail": "See ValidationErrors for details",
                      "Instance": null,
                      "Extensions": {}
                    }
                  },
                  "invalidJson": {
                    "summary": "The body isn't valid JSON",
                    "value": {
                      "correlationId": "8eac0cce-bfe5-4962-ae15-8578c7effece",
                      "message": "Bad Request",
                      "details": "Invalid JSON in request body"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. The username or password is wrong. Usernames and passwords are case sensitive.",
            "headers": {
              "RateLimit-remaining": {
                "description": "How many more invalid login attempts are allowed before requests are rate limited.",
                "schema": {
                  "type": "integer",
                  "example": 4
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectAuthFailedResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests. Too many invalid login attempts in a short time. Wait 2 minutes before trying again.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Why the request was refused."
                    }
                  }
                },
                "example": {
                  "message": "You sent too many requests. Please wait a while then try again"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectErrorResponsesBadRequest"
                }
              }
            }
          }
        }
      }
    },
    "/compliance/controllingOwnership/{id}": {
      "get": {
        "operationId": "complianceControllingOwnershipIdGet",
        "tags": [
          "Controlling Owners"
        ],
        "summary": "Return Controlling Ownership Details Of A Given Company",
        "description": "Returns the controlling owners of a company: its ultimate owners, its immediate owners, and the group hierarchy above it.\n\nRequest the company by connectId or by Safe Number.\n\nAvailable for companies in:\n\n- Austria (AT)\n- Belgium (BE)\n- Canada (CA)\n- France (FR)\n- Germany (DE)\n- Ireland (IE)\n- Italy (IT)\n- Luxembourg (LU)\n- Netherlands (NL)\n- United Kingdom (GB)\n- United States (US)\n\nA company with no controlling ownership information returns a `200` with `message` \"No Results\" and no `report`.\n\nLists with no information are left out of the response rather than returned empty. For how to read the response, see the User Guide in this product's documentation.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The connectId or Safe Number of the company. Get either from Company Search. A registration number isn't accepted.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "connectId": {
                "summary": "connectId",
                "value": "GB-0-12345678"
              },
              "safeNumber": {
                "summary": "Safe Number",
                "value": "UK12345678"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The controlling ownership report, or no results if there is no controlling ownership information for the company.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ComplianceControllingOwnershipResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ComplianceControllingOwnershipNoResults"
                    }
                  ]
                },
                "examples": {
                  "groupOwned": {
                    "summary": "Company owned by a group",
                    "value": {
                      "correlationId": "3f2b8c1e-6d4a-4f0b-9a7e-2c5d8e1f4a60",
                      "report": {
                        "companyId": "IE-0-IE123456",
                        "language": "EN",
                        "controllingOwners": {
                          "ultimate": [
                            {
                              "name": "EXAMPLE GLOBAL HOLDINGS CO., LTD.",
                              "ownership": {
                                "percentage": ">50",
                                "comments": [
                                  "Ownership is greater than 50%"
                                ]
                              },
                              "source": "GROUP"
                            }
                          ],
                          "immediate": [
                            {
                              "name": "EXAMPLE MOTORS B.V.",
                              "ownership": {
                                "percentage": "100.00",
                                "comments": [
                                  "ORDINARY"
                                ]
                              },
                              "source": "SHARE"
                            }
                          ],
                          "structure": [
                            {
                              "country": "CN",
                              "name": "EXAMPLE GLOBAL HOLDINGS CO., LTD.",
                              "level": 0
                            },
                            {
                              "country": "NL",
                              "safeNumber": "NL20000001",
                              "name": "EXAMPLE HOLDINGS NETHERLANDS B.V.",
                              "registrationNumber": "10000001",
                              "level": 1
                            },
                            {
                              "country": "NL",
                              "safeNumber": "NL20000002",
                              "name": "EXAMPLE EUROPE B.V.",
                              "registrationNumber": "10000002",
                              "level": 2
                            },
                            {
                              "country": "NL",
                              "safeNumber": "NL20000003",
                              "name": "EXAMPLE MOTORS B.V.",
                              "registrationNumber": "10000003",
                              "level": 3
                            }
                          ]
                        }
                      }
                    }
                  },
                  "beneficialOwners": {
                    "summary": "UK company with persons with significant control",
                    "value": {
                      "correlationId": "8a1d4e7c-2b9f-4c3a-b6d0-5e8f1a2c7b94",
                      "report": {
                        "companyId": "GB-0-12345678",
                        "language": "EN",
                        "controllingOwners": {
                          "ultimate": [
                            {
                              "safeNumber": "LU12345678",
                              "name": "EXAMPLE PARENT S.À R.L.",
                              "ownership": {
                                "percentage": ">50",
                                "comments": [
                                  "Ownership is greater than 50%"
                                ]
                              },
                              "source": "GROUP"
                            }
                          ],
                          "immediate": [
                            {
                              "name": "EXAMPLE HOLDINGS LIMITED",
                              "ownership": {
                                "percentage": "75-100",
                                "comments": [
                                  "ownership-of-shares-75-to-100-percent",
                                  "voting-rights-75-to-100-percent",
                                  "significant-influence-or-control"
                                ]
                              },
                              "source": "UBO-UK"
                            },
                            {
                              "name": "Jane Smith",
                              "ownership": {
                                "percentage": "25-50",
                                "comments": [
                                  "ownership-of-shares-25-to-50-percent",
                                  "voting-rights-25-to-50-percent"
                                ]
                              },
                              "source": "UBO-UK"
                            }
                          ],
                          "structure": [
                            {
                              "country": "LU",
                              "safeNumber": "LU12345678",
                              "name": "EXAMPLE PARENT S.À R.L.",
                              "level": 0
                            },
                            {
                              "country": "NL",
                              "safeNumber": "NL12345678",
                              "name": "EXAMPLE GROUP B.V.",
                              "registrationNumber": "12345678",
                              "level": 1
                            },
                            {
                              "country": "CY",
                              "name": "EXAMPLE HOLDINGS LIMITED",
                              "level": 2
                            }
                          ]
                        }
                      }
                    }
                  },
                  "immediateOnly": {
                    "summary": "Company with immediate owners only",
                    "value": {
                      "correlationId": "c7e2a9b4-1f3d-4e8a-9c5b-0d6f2a8e3b17",
                      "report": {
                        "companyId": "AT-X-AT12345678",
                        "language": "EN",
                        "controllingOwners": {
                          "immediate": [
                            {
                              "name": "EXAMPLE INVESTMENTS UNLIMITED COMPANY",
                              "ownership": {
                                "percentage": "99.80"
                              },
                              "source": "SHARE"
                            }
                          ]
                        }
                      }
                    }
                  },
                  "noResults": {
                    "summary": "No controlling ownership information for the company",
                    "value": {
                      "correlationId": "9d3b6e1a-4c8f-4a2d-b5e7-1f0c3a9d6b28",
                      "message": "No Results",
                      "details": "No controlling owners found."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectErrorResponsesBadRequest"
                },
                "examples": {
                  "invalidId": {
                    "summary": "The id isn't a connectId or Safe Number, the connectId doesn't match a company, or the country isn't covered",
                    "value": {
                      "correlationId": "4b8e1c2d-7a3f-4e9b-8d1c-6f2a5e9b3c70",
                      "message": "Bad Request",
                      "details": "Invalid companyId"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectErrorResponsesInvalidToken"
                },
                "example": {
                  "error": "Invalid token."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectErrorResponsesAccessForbidden"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectErrorResponsesResourceNotFoundRequest"
                },
                "examples": {
                  "companyNotFound": {
                    "summary": "The Safe Number doesn't match a company",
                    "value": {
                      "correlationId": "2e7a4c9f-5b1d-4f3e-8a6c-9d0b3e7f1a25",
                      "message": "Not Found",
                      "details": "Company not found"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectErrorResponsesBadRequest"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "This API requires authentication for access to protected endpoints. Authentication is performed by providing a valid JWT token in the Authorization header of each request."
      }
    },
    "schemas": {
      "ConnectAuthenticationAuthRequest": {
        "type": "object",
        "required": [
          "username",
          "password"
        ],
        "properties": {
          "username": {
            "type": "string",
            "description": "Your Connect username, as given to you when your account was set up. Case sensitive.",
            "example": "username@domain.com"
          },
          "password": {
            "type": "string",
            "description": "Your Connect password. Case sensitive.",
            "example": "^1gHySRA56aj>tf421o"
          }
        }
      },
      "ConnectAuthenticationAuthResponse": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Authentication Token",
            "example": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImRodTNnNkFtTG5QQXVpOEJSMUFEVnp5ZHBnZyIsInR5cCI6IkpXVCIsIng1dCI6ImRodTNnNkFtTG5QQXVpOEJSMUFEVnp5ZHBnZyJ9.eyJuYmYiOjE1OTU0MTYyMDksImV4cCI6MTU5NTQxOTgwOSwiaXNzIjoiaHR0cHM6Ly9teWxvZ2luLnRlc3QuY3JlZGl0c2FmZS5jb20iLCJhdWQiOlsiaHR0cHM6Ly9teWxvZ2luLnRlc3QuY3JlZGl0c2FmZS5jb20vcmVzb3VyY2VzIiwiY29ubmVjdF9hcGkiLCJ1Ym9fYXBpX2dhdGV3YXkiXSwiY2xpZW50X2lkIjoiY29ubmVjdC5hcGkuY2xpZW50Iiwic3ViIjoiMTAxNTIwMjg1IiwiYXV0aF90aW1lIjoxNTk1NDE2MjA5LCJpZHAiOiJsb2NhbCIsInVzZXJuYW1lIjoiQ29ubmVjdHUxIiwiZW1haWwiOiJDb25uZWN0MUBnbWFpbC5jb20iLCJjdXN0b21lcklkIjoiMTAxNzY0NDA1IiwiY291bnRyeSI6IkMwIiwidXNlclJvbGUiOiJDcm1BZG1pblBsdXMiLCJzYl9jb3VudHJ5IjoiVVMiLCJzY29wZSI6WyJjb25uZWN0X2FwaSIsInVib19hcGlfZ2F0ZXdheSJdLCJhbXIiOlsicHdkIl19.p8kPAlKNB9iWEKiQbfbRXBoLQuBG7NuEDN__A8AQ55CL-gcIwkS1717Af1f9W0uifwIQ6HAZQR_x191LVkvuWD94Zw8zLzzr1ioUIhQny_zYuAS3G6EFNaTHh_mvOQ9XVi1FyuIy6YYcYcNLNZurFuITF2w5LuX4YQBjQy3rhEAdRoKcUKbtCClMFaH2dV35jiX2d7BqyhtJ8GeZyJ6yfMfdzznqxlJ4Osf5aasKUy8RYKEpjU2pkCURojoy5_oviGs8X4U9mJWcuajmPF3i5DHkqbhq1Mp0UZrDyoq_0BDStV5xqRgq6aOY8mc45kX7cwY3O2hPeGE7Ak8YtKFbA"
          }
        }
      },
      "ConnectErrorResponsesBadRequest": {
        "type": "object",
        "description": "Bad Request",
        "properties": {
          "correlationId": {
            "type": "string",
            "description": "A unique ID assigned to this request."
          },
          "message": {
            "type": "string",
            "description": "A short summary of why the request was rejected. `details` gives more information."
          },
          "details": {
            "type": "string",
            "description": "Provides further information on why the request was rejected"
          }
        }
      },
      "ConnectAuthFailedResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Why the login failed."
          }
        },
        "example": {
          "message": "Access denied - Please check that your username and password are correct. Please be aware that usernames and passwords are case sensitive. If the problem persists, please contact your Creditsafe account manager."
        }
      },
      "ComplianceControllingOwnershipAddress": {
        "type": "object",
        "description": "The address of the owner, when available.",
        "properties": {
          "simpleValue": {
            "type": "string",
            "description": "The full address as a single string.",
            "example": "1 EXAMPLE STREET, CARDIFF, CF10 1AA"
          }
        }
      },
      "ComplianceControllingOwnershipShare": {
        "type": "object",
        "description": "How much of the company the owner holds or controls.",
        "properties": {
          "percentage": {
            "type": "string",
            "description": "The ownership share. It's a string because its format depends on the owner's `source`:<br><br> `SHARE` and `UBO-FR` - an exact percentage with two decimal places, for example `100.00` or `51.62`<br> `GROUP` - `>50`, meaning more than 50%<br> `UBO-UK` - a range, `25-50` or `75-100`<br><br> Don't parse it as a number without checking the format.",
            "example": "100.00"
          },
          "comments": {
            "type": "array",
            "description": "More information about the ownership, when available. The content depends on the `source`:<br><br> `SHARE` - the type of share held, for example `ORDINARY`<br> `GROUP` - a sentence, for example `Ownership is greater than 50%`<br> `UBO-UK` - the nature of control codes from the UK register, for example `ownership-of-shares-75-to-100-percent`, `voting-rights-25-to-50-percent` or `significant-influence-or-control`",
            "items": {
              "type": "string"
            },
            "example": [
              "ORDINARY"
            ]
          }
        }
      },
      "ComplianceControllingOwnershipUltimateOwnerItem": {
        "type": "object",
        "description": "An ultimate controlling owner of the company.",
        "properties": {
          "country": {
            "type": "string",
            "description": "The ISO 3166-1 alpha-2 country code of the owner, when available.",
            "example": "NL"
          },
          "safeNumber": {
            "type": "string",
            "description": "The Safe Number of the owner. Returned only when the owner is a company that Creditsafe holds a record for, so it's left out for people and for companies outside Creditsafe's coverage.",
            "example": "NL20000001"
          },
          "name": {
            "type": "string",
            "description": "The name of the owner, a person or a company.",
            "example": "EXAMPLE GLOBAL HOLDINGS CO., LTD."
          },
          "address": {
            "$ref": "#/components/schemas/ComplianceControllingOwnershipAddress"
          },
          "ownership": {
            "$ref": "#/components/schemas/ComplianceControllingOwnershipShare"
          },
          "source": {
            "type": "string",
            "description": "The type of information the owner comes from. The `source` decides the format of `ownership.percentage` and `ownership.comments`. Values include:<br><br> `SHARE` - shareholdings<br> `GROUP` - Creditsafe group structure information<br> `UBO-UK` - UK persons with significant control register<br> `UBO-FR` - French beneficial ownership register<br><br> More values may be added; treat an unknown value as a valid source.",
            "example": "GROUP"
          }
        },
        "required": [
          "name"
        ]
      },
      "ComplianceControllingOwnershipImmediateOwnerItem": {
        "type": "object",
        "description": "An immediate controlling owner of the company.",
        "properties": {
          "country": {
            "type": "string",
            "description": "The ISO 3166-1 alpha-2 country code of the owner, when available.",
            "example": "NL"
          },
          "id": {
            "type": "string",
            "description": "An identifier for the owner, when available."
          },
          "idType": {
            "type": "string",
            "description": "The type of identifier given in `id`."
          },
          "safeNumber": {
            "type": "string",
            "description": "The Safe Number of the owner. Returned only when the owner is a company that Creditsafe holds a record for, so it's left out for people and for companies outside Creditsafe's coverage.",
            "example": "NL20000003"
          },
          "name": {
            "type": "string",
            "description": "The name of the owner, a person or a company.",
            "example": "EXAMPLE MOTORS B.V."
          },
          "registrationNumber": {
            "type": "string",
            "description": "The company registration number of the owner, when available.",
            "example": "10000003"
          },
          "address": {
            "$ref": "#/components/schemas/ComplianceControllingOwnershipAddress"
          },
          "ownership": {
            "$ref": "#/components/schemas/ComplianceControllingOwnershipShare"
          },
          "source": {
            "type": "string",
            "description": "The type of information the owner comes from. The `source` decides the format of `ownership.percentage` and `ownership.comments`. Values include:<br><br> `SHARE` - shareholdings<br> `GROUP` - Creditsafe group structure information<br> `UBO-UK` - UK persons with significant control register<br> `UBO-FR` - French beneficial ownership register<br><br> More values may be added; treat an unknown value as a valid source.",
            "example": "SHARE"
          }
        },
        "required": [
          "name"
        ]
      },
      "ComplianceControllingOwnershipStructureItem": {
        "type": "object",
        "description": "A company in the group hierarchy above the requested company.",
        "properties": {
          "country": {
            "type": "string",
            "description": "The ISO 3166-1 alpha-2 country code of the company.",
            "example": "NL"
          },
          "safeNumber": {
            "type": "string",
            "description": "The Safe Number of the company. Left out for companies outside Creditsafe's coverage.",
            "example": "NL20000001"
          },
          "name": {
            "type": "string",
            "description": "The name of the company.",
            "example": "EXAMPLE HOLDINGS NETHERLANDS B.V."
          },
          "registrationNumber": {
            "type": "string",
            "description": "The company registration number, when available.",
            "example": "10000001"
          },
          "level": {
            "type": "integer",
            "format": "int32",
            "description": "The company's position in the hierarchy. `0` is the top of the group, and the number goes up by one for each level down towards the requested company.",
            "example": 1
          }
        },
        "required": [
          "name",
          "level"
        ]
      },
      "ComplianceControllingOwners": {
        "type": "object",
        "description": "The owners of the company and the group hierarchy above it.<br><br> Each list is left out when there is no information for it, rather than returned empty. A company can have, for example, `immediate` owners but no `ultimate` owner or `structure`.",
        "properties": {
          "ultimate": {
            "type": "array",
            "description": "The ultimate controlling owners: the people or companies that control the company at the top of its ownership chain.",
            "items": {
              "$ref": "#/components/schemas/ComplianceControllingOwnershipUltimateOwnerItem"
            }
          },
          "immediate": {
            "type": "array",
            "description": "The immediate controlling owners: the people or companies that own the company directly.",
            "items": {
              "$ref": "#/components/schemas/ComplianceControllingOwnershipImmediateOwnerItem"
            }
          },
          "structure": {
            "type": "array",
            "description": "The group hierarchy above the company, from the top of the group (`level` 0) down. The requested company itself isn't included.<br><br> The `structure` and the owner lists come from different sources, so the names don't always match. For example, the ultimate owner can be a person while the top of the `structure` is a company.",
            "items": {
              "$ref": "#/components/schemas/ComplianceControllingOwnershipStructureItem"
            }
          }
        }
      },
      "ComplianceControllingOwnershipReport": {
        "type": "object",
        "description": "The controlling ownership report for the requested company.",
        "properties": {
          "companyId": {
            "type": "string",
            "description": "The connectId of the company. This is always the connectId, in upper case, even when you request the company by Safe Number.",
            "example": "GB-0-12345678"
          },
          "language": {
            "type": "string",
            "description": "The language of the report. Always `EN`.",
            "example": "EN"
          },
          "controllingOwners": {
            "$ref": "#/components/schemas/ComplianceControllingOwners"
          }
        },
        "required": [
          "companyId",
          "language",
          "controllingOwners"
        ]
      },
      "ComplianceControllingOwnershipResponse": {
        "type": "object",
        "description": "Controlling ownership details for a company.",
        "properties": {
          "correlationId": {
            "type": "string",
            "format": "uuid",
            "description": "A unique ID assigned to this request."
          },
          "report": {
            "$ref": "#/components/schemas/ComplianceControllingOwnershipReport"
          }
        },
        "required": [
          "correlationId",
          "report"
        ]
      },
      "ComplianceControllingOwnershipNoResults": {
        "type": "object",
        "description": "Returned with a 200 when the request is valid but there is no controlling ownership information for the company. It has no report.",
        "properties": {
          "correlationId": {
            "type": "string",
            "format": "uuid",
            "description": "A unique ID assigned to this request."
          },
          "message": {
            "type": "string",
            "description": "Says that no report was found.",
            "example": "No Results"
          },
          "details": {
            "type": "string",
            "description": "Says why no report was returned.",
            "example": "No controlling owners found."
          }
        },
        "required": [
          "correlationId",
          "message",
          "details"
        ]
      },
      "ConnectErrorResponsesInvalidToken": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Why the request wasn't authorised, for example `Invalid token.` when the token is missing, expired or isn't a valid Connect token."
          }
        },
        "description": "401 - Authorization Token has either expired or is not a valid Connect Token"
      },
      "ConnectErrorResponsesAccessForbidden": {
        "type": "object",
        "description": "403 - Access Forbidden",
        "properties": {
          "correlationId": {
            "description": "The unique identifier. (A UUID specified by RFC4122).",
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string",
            "description": "A short summary of why access was refused. `details` gives more information.",
            "example": "Access forbidden"
          },
          "details": {
            "type": "string",
            "description": "Provides further information on why the request was rejected"
          }
        }
      },
      "ConnectErrorResponsesResourceNotFoundRequest": {
        "type": "object",
        "description": "404 - Not Found",
        "properties": {
          "correlationId": {
            "type": "string",
            "description": "A unique ID assigned to this request.",
            "format": "uuid"
          },
          "message": {
            "type": "string",
            "description": "A short summary of what wasn't found. `details` gives more information."
          },
          "details": {
            "type": "string",
            "description": "Provides further information on why the request was rejected"
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerToken": []
    }
  ]
}